home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TeX 1995 July
/
TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO
/
macros
/
lamstex
/
dvipaste.patch.01
< prev
next >
Wrap
Text File
|
1993-06-03
|
1KB
|
77 lines
This should fix dvipaste.c so that it will work on big-endian
machines as well.
Ed Sznyter
ews@babel.COM
Jun 3, 1993
*** dvipaste.c.new Thu Jun 3 09:30:02 1993
--- dvipaste.c Thu Jun 3 09:29:23 1993
***************
*** 338,347 ****
int num;
FILE *f;
{
! char *p;
! p=(char *)#
! PutByte(*(p+1), f);
! PutByte(*p, f);
return;
}
--- 346,353 ----
int num;
FILE *f;
{
! PutByte( (num>>8) , f);
! PutByte( (num>>0) , f);
return;
}
***************
*** 351,360 ****
FILE *f;
{
int i;
! char *p;
! p = (char *)&trio;
! for (i=2; i>=0; i--)
! PutByte( *(p+i), f);
return;
}
--- 357,365 ----
FILE *f;
{
int i;
! PutByte( (trio>>16) , f);
! PutByte( (trio>>8) , f);
! PutByte( (trio>>0) , f);
return;
}
***************
*** 362,372 ****
long quad;
FILE *f;
{
! int i;
! char *p;
! p = (char *)&quad;
! for (i=3; i>=0; i--)
! PutByte( *(p+i), f );
return;
}
--- 367,376 ----
long quad;
FILE *f;
{
! PutByte( (quad>>24) , f);
! PutByte( (quad>>16) , f);
! PutByte( (quad>>8) , f);
! PutByte( (quad>>0) , f);
return;
}